// 引入插件
import Vue from 'vue'
import Vuex from 'vuex'
import home from './modules/home'
import search from './modules/search'
import passport from './modules/passport'
import detail from './modules/detail'
import trade from './modules/trade'
// 注册插件
Vue.use(Vuex)


// 定义方法
const state = {

}
const actions = {

}
const mutations = {

}
const getters = {}


// 创建实例对象
const store = new Vuex.Store({
    modules: { home, search, passport, detail, trade }

})

// 导出对象
export default store